package net.ufrog.common.redis.serializers;

import net.ufrog.common.utils.Objects;

/**
 * 字节数组序列实现
 *
 * @author ultrafrog, ufrog.net@gmail.com
 * @version 0.1, 2016-09-26
 * @since 0.1
 */
public class ByteArraySerializer implements Serializer {

    @Override
    public byte[] serialize(Object object) {
        return Objects.serialize(object);
    }

    @Override
    public Object deserialize(byte[] bytes) {
        return Objects.deserialize(bytes);
    }
}
